package com.xpgk.mvc.ddc.ddc_commomUtil;

import java.util.List;

import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.ddc.entity.Business;
import com.xpgk.mvc.ddc.entity.Picture;
import com.xpgk.mvc.ddc.entity.Plate;
import com.xpgk.mvc.ddc.entity.Vehicle;

public class DDC_CommonUtilController extends BaseController{

	private DDC_CommonUtilService commonUtilService = new DDC_CommonUtilService();
	/**
	 * 获取车辆
	 * 
	 */
	public void getVehicle() {
		List<Vehicle> mm = commonUtilService.getVehicle();
		renderJson(mm);
	}
	/**
	 * 获取车辆
	 * 
	 */
	public void getVehicleByCLSBDH() {
		String CLSBDH = getPara("CLSBDH");
		List<Vehicle> mm = commonUtilService.getVehicleByCLSBDH(CLSBDH);
		renderJson(mm);
	}
	/**
	 * 获取业务
	 * 
	 */
	public void getBusiness() {
		List<Business> mm = commonUtilService.getBusiness();
		renderJson(mm);
	}
	/**
	 * 获取号牌
	 * 
	 */
	public void getPlate() {
		List<Plate> mm = commonUtilService.getPlate();
		renderJson(mm);
	}
	/**
	 * 获取号牌
	 * 
	 */
	public void getPlateByHPHM() {
		String HPHM = getPara("HPHM");
		List<Plate> mm = commonUtilService.getPlateByHPHM(HPHM);
		renderJson(mm);
	}
	/**
	 * 获取业务照片
	 * 
	 */
//	public List<Picture> getPicture(String businessids) {
//		List<Picture> mm = commonUtilService.getPicture(businessids);
//		return mm;
//	}
	/**
	 * 获取业务照片
	 * 
	 */
	public void getPicture() {
		String businessids = getPara("businessids");
		String picturename = getPara("picturename");
		Picture picture = commonUtilService.getPicture(businessids, picturename);
		renderJson(picture);
	}
	/**
	 * 开启高拍仪
	 * 
	 */
	public void gpy() {
		render("gpy.html");
	}
}
